package com.mj.factory.productOrder;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * Created by Administrator on 2017/3/16.
 */
@Controller
@RequestMapping("mjfactory")
public class ProductOrderController {
    private Logger logger = Logger.getLogger(this.getClass());

    @Autowired
    ProductOrderService productOrderService;

    //查询项目名称
    @RequestMapping(value = "/processFlow/findProjectName", method = RequestMethod.GET)
    @ResponseBody
    public List<ProductOrder> findProjectName() {
        return productOrderService.findAll();
    }
}

